How to find integration of exponential functions